package com.xm.service.impl;

import com.xm.mapper.SysUserDeviceMapper;
import com.xm.pojo.SysUserDevice;
import com.xm.service.SysUserDeviceService;
import com.xm.util.BaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by wzl on 2018/9/6.
 */
@Service
public class SysUserDeviceServiceImpl extends BaseServiceImpl<SysUserDevice,SysUserDeviceMapper> implements SysUserDeviceService {
    @Resource(name="sysUserDeviceMapper")
    @Override
    public void setDao(SysUserDeviceMapper sysUserDeviceMapper){this.mapper=sysUserDeviceMapper;}

    @Override
    public int deleteByUserId(Integer id) {
        return mapper.deleteByUserId(id);
    }
}
